home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 May / Software of the Month Club 1996 May.iso / mac / ISO9660 / ZIPFILES / BMPWIZ.ZIP / RAND1.BAS < prev    next >
Unknown  |  1995-12-13  |  638 b 

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 7a 02 00 00 0d 0a 27 20 | 52 61 6e 64 31 2e 0d 0a |z.....' |Rand1...|
|00000010| 27 20 46 69 6c 6c 20 61 | 6e 20 69 6d 61 67 65 20 |' Fill a|n image |
|00000020| 77 69 74 68 20 72 61 6e | 64 6f 6d 20 67 72 61 79 |with ran|dom gray|
|00000030| 73 20 70 69 78 65 6c 0d | 0a 0d 0a 27 20 49 6e 70 |s pixel.|...' Inp|
|00000040| 75 74 3a 09 6e 6f 6e 65 | 0d 0a 27 20 4f 75 74 70 |ut:.none|..' Outp|
|00000050| 75 74 3a 09 34 20 62 69 | 74 0d 0a 0d 0a 27 20 41 |ut:.4 bi|t....' A|
|00000060| 75 74 68 6f 72 3a 09 41 | 6e 64 72 65 61 20 42 65 |uthor:.A|ndrea Be|
|00000070| 6e 6f 6e 69 09 09 09 20 | 72 65 76 3a 09 31 2e 30 |noni... |rev:.1.0|
|00000080| 0d 0a 0d 0a 0d 0a 73 74 | 72 69 6e 67 20 20 20 20 |......st|ring |
|00000090| 09 6f 75 74 46 69 6c 65 | 0d 0a 44 65 76 43 6f 6e |.outFile|..DevCon|
|000000a0| 09 4f 62 6d 70 0d 0a 52 | 47 42 09 70 69 78 0d 0a |.Obmp..R|GB.pix..|
|000000b0| 66 6c 6f 61 74 20 20 09 | 78 2c 79 0d 0a 0d 0a 6f |float .|x,y....o|
|000000c0| 75 74 46 69 6c 65 3d 22 | 54 65 73 74 6f 2e 62 6d |utFile="|Testo.bm|
|000000d0| 70 22 09 09 09 09 27 20 | 6f 75 74 70 75 74 20 66 |p"....' |output f|
|000000e0| 69 6c 65 0d 0a 0d 0a 4f | 62 6d 70 3d 43 72 65 61 |ile....O|bmp=Crea|
|000000f0| 74 65 49 6d 61 67 65 28 | 33 32 30 2c 32 30 30 2c |teImage(|320,200,|
|00000100| 34 29 0d 0a 0d 0a 46 6f | 72 20 79 3d 30 20 74 6f |4)....Fo|r y=0 to|
|00000110| 20 4f 62 6d 70 2e 48 65 | 69 67 68 74 0d 0a 20 20 | Obmp.He|ight.. |
|00000120| 20 44 73 70 57 68 69 6c | 65 28 22 52 61 6e 64 6f | DspWhil|e("Rando|
|00000130| 6d 22 2c 31 30 30 2f 4f | 62 6d 70 2e 48 65 69 67 |m",100/O|bmp.Heig|
|00000140| 68 74 2a 79 29 0d 0a 20 | 20 20 46 6f 72 20 78 3d |ht*y).. | For x=|
|00000150| 30 20 74 6f 20 4f 62 6d | 70 2e 57 69 64 74 68 0d |0 to Obm|p.Width.|
|00000160| 0a 20 20 20 20 20 20 53 | 65 74 50 69 78 65 6c 56 |. S|etPixelV|
|00000170| 61 6c 28 4f 62 6d 70 2c | 78 2c 79 2c 52 61 6e 64 |al(Obmp,|x,y,Rand|
|00000180| 28 32 35 35 29 29 0d 0a | 20 20 20 4e 65 78 74 20 |(255))..| Next |
|00000190| 78 0d 0a 4e 65 78 74 20 | 79 0d 0a 0d 0a 46 6f 72 |x..Next |y....For|
|000001a0| 20 79 3d 30 20 74 6f 20 | 31 30 30 30 0d 0a 20 20 | y=0 to |1000.. |
|000001b0| 20 46 6f 72 20 78 3d 30 | 20 74 6f 20 32 35 35 0d | For x=0| to 255.|
|000001c0| 0a 20 20 20 20 20 20 70 | 69 78 2e 4c 75 6d 3d 52 |. p|ix.Lum=R|
|000001d0| 61 6e 64 28 32 35 35 29 | 0d 0a 20 20 20 20 20 20 |and(255)|.. |
|000001e0| 53 65 74 50 61 6c 65 74 | 74 65 28 4f 62 6d 70 2c |SetPalet|te(Obmp,|
|000001f0| 78 2c 70 69 78 29 0d 0a | 20 20 20 4e 65 78 74 20 |x,pix)..| Next |
|00000200| 78 0d 0a 20 20 20 50 72 | 65 76 69 65 77 28 4f 62 |x.. Pr|eview(Ob|
|00000210| 6d 70 2c 6f 75 74 46 69 | 6c 65 2c 35 2c 35 2c 4f |mp,outFi|le,5,5,O|
|00000220| 62 6d 70 2e 57 69 64 74 | 68 2b 36 2c 4f 62 6d 70 |bmp.Widt|h+6,Obmp|
|00000230| 2e 48 65 69 67 68 74 2b | 32 30 29 0d 0a 4e 65 78 |.Height+|20)..Nex|
|00000240| 74 20 79 0d 0a 0d 0a 53 | 61 76 65 49 6d 61 67 65 |t y....S|aveImage|
|00000250| 28 4f 62 6d 70 2c 6f 75 | 74 46 69 6c 65 29 0d 0a |(Obmp,ou|tFile)..|
|00000260| 44 73 70 57 68 69 6c 65 | 28 22 22 2c 30 29 0d 0a |DspWhile|("",0)..|
|00000270| 44 73 70 4d 65 73 28 22 | 46 69 6e 65 22 29 |DspMes("|Fine") |
+--------+-------------------------+-------------------------+--------+--------+